home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 March / CMCD0305.ISO / Software / Freeware / Programare / nvu / nvu-0.80-win32-installer-full.exe / {app} / chrome / cascades.jar / content / cascades / EdCssProps.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-01-31  |  7.8 KB  |  193 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is CaScadeS, a stylesheet editor for Composer.
  16.    -
  17.    - The Initial Developer of the Original Code is
  18.    - Daniel Glazman.
  19.    - Portions created by the Initial Developer are Copyright (C) 2002
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s):
  23.    -   Original author: Daniel Glazman (daniel@glazman.org)
  24.    -
  25.    - Alternatively, the contents of this file may be used under the terms of
  26.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  27.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.    - in which case the provisions of the GPL or the LGPL are applicable instead
  29.    - of those above. If you wish to allow use of your version of this file only
  30.    - under the terms of either the GPL or the LGPL, and not to allow others to
  31.    - use your version of this file under the terms of the MPL, indicate your
  32.    - decision by deleting the provisions above and replace them with the notice
  33.    - and other provisions required by the LGPL or the GPL. If you do not delete
  34.    - the provisions above, a recipient may use your version of this file under
  35.    - the terms of any one of the MPL, the GPL or the LGPL.
  36.    -
  37.    - ***** END LICENSE BLOCK ***** -->
  38.  
  39. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  40. <?xml-stylesheet href="chrome://editor/skin/" type="text/css"?>
  41. <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
  42. <?xml-stylesheet href="chrome://cascades/content/EdCssProps.css" type="text/css"?>
  43.  
  44. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  45. <?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?>
  46. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  47.  
  48. <?xul-overlay href="chrome://cascades/content/tabsOverlay.xul"?>
  49.  
  50. <!DOCTYPE window SYSTEM "chrome://cascades/locale/EdCssProps.dtd">
  51.  
  52. <window title="&Window.title;"
  53.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  54.     xmlns:html="http://www.w3.org/1999/xhtml"
  55.     onload="Startup();"
  56.     onclose="FlushChanges();">
  57.  
  58.   <!-- Methods common to all editor dialogs -->
  59.   <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  60.  
  61.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  62.   <script type="application/x-javascript" src="chrome://cascades/content/compatibility.js"/>
  63.   <script type="application/x-javascript" src="chrome://cascades/content/commonCssProps.js"/>
  64.   <script type="application/x-javascript" src="chrome://cascades/content/EdCssProps.js"/>
  65.   <script type="application/x-javascript" src="chrome://cascades/content/EdCssProps-utils.js"/>
  66.   <script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js" />
  67.  
  68.   <spacer id="location" offsetY="50" persist="offsetX offsetY"/>
  69.   <spacer id="dummy" style="display:none"/>
  70.  
  71.   <stringbundle id="cascadesBundle" src="chrome://cascades/locale/cascades.properties"/>
  72.  
  73.   <broadcaster id="args" value=""/>
  74.   <hbox>
  75.     <grid flex="1">
  76.       <rows><row flex="1"/><row/></rows>
  77.       <columns>
  78.         <column>
  79.           <tree flex="1"
  80.                 seltype="single"
  81.                 hidecolumnpicker="true"
  82.                 id="sheetsTree"
  83.                 onselect="onSelectCSSTreeItem(null);">
  84.             <treecols>
  85.               <treecol primary="true"
  86.                        id="sheetsTreeCol"
  87.                        flex="1"
  88.                        label="&sheetsTreeColumn.label;"/>
  89.             </treecols>
  90.             <treechildren flex="1" id="stylesheetsTree"/>
  91.           </tree>
  92.           <grid>
  93.             <columns><column flex="1"/><column flex="1"/><column flex="1"/></columns>
  94.             <rows>
  95.               <row>
  96.                 <button label="&importRuleButton.label;"
  97.                         id="atimportButton"
  98.                         disabled="true"
  99.                         oncommand="CreateNewAtimportRule();"/>
  100.                 <spacer/>
  101.                 <button label="&mediaRuleButton.label;"  id="atmediaButton" disabled="true"/>
  102.               </row>
  103.               <row>
  104.                 <button label="&linkedSheetButton.label;"
  105.                         id="linkButton"
  106.                         oncommand="CreateNewLinkedSheet();"/>
  107.                 <button label="&styleSheetButton.label;"
  108.                         id="styleButton"
  109.                         oncommand="CreateNewStyleElement();"/>
  110.                 <button label="&ruleButton.label;"
  111.                         id="ruleButton" disabled="true"
  112.                         oncommand="CreateNewStyleRule();"/>
  113.               </row>
  114.             </rows>
  115.           </grid>
  116.           <checkbox label="&expertModeChecbox.label;"
  117.                     id="expertModeCheckbox"
  118.                     checked="true"
  119.                     oncommand="toggleExpertMode();"/>
  120.         </column>
  121.         <column>
  122.           <vbox>
  123.             <button id="upButton"
  124.                     class="up"
  125.                     label="&upButton.label;"
  126.                     oncommand="MoveObjectUp()"/>
  127.             <button id="downButton"
  128.                     class="down"
  129.                     label="&downButton.label;"
  130.                     oncommand="MoveObjectDown()"/>
  131.             <spacer flex="1"/>
  132.             <button label="&refreshButton.label;"
  133.                     oncommand="Refresh();"/>
  134.             <spacer flex="1"/>
  135.             <button label="&removeButton.label;"
  136.                     id="removeButton"
  137.                     disabled="true"
  138.                     oncommand="RemoveObject();"/>
  139.           </vbox>
  140.         </column>
  141.       </columns>
  142.     </grid>
  143.     <vbox>
  144.       <tabbox id="sheetTabbox">
  145.         <tabs>
  146.           <tab id="sheetInfoTab"
  147.                label="&sheetInfoTab.label;"
  148.                oncommand="onSelectCSSTreeItem('general');"/>
  149.           <tab id="textTab"
  150.                label="&textTab.label;"
  151.                oncommand="onSelectCSSTreeItem('text');"/>
  152.           <tab id="backgroundTab"
  153.                label="&backgroundTab.label;"
  154.                oncommand="onSelectCSSTreeItem('background');"/>
  155.           <tab id="borderTab"
  156.                label="&borderTab.label;"
  157.                oncommand="onSelectCSSTreeItem('border');"/>
  158.           <tab id="boxTab"
  159.                label="&boxTab.label;"
  160.                oncommand="onSelectCSSTreeItem('box');"/>
  161.           <tab id="auralTab"
  162.                label="&auralTab.label;"
  163.                oncommand="onSelectCSSTreeItem('aural');"/>
  164.         </tabs>
  165.         <!-- defined in tabsOverlay -->
  166.         <tabpanels id="TabPanels">
  167.           <!-- STYLESHEET INFORMATION PANEL -->
  168.           <vbox id="sheetInfoTabPanel"
  169.                 flex="1">
  170.             <label id="sheetInfoTabPanelTitle"
  171.                    value=""/>
  172.             <vbox flex="1">
  173.               <grid id="sheetInfoTabGrid">
  174.                 <columns><column/><column flex="1"/></columns>
  175.               </grid>
  176.             </vbox>
  177.           </vbox>
  178.           <vbox id="textTabPanel" />
  179.           <vbox id="backgroundTabPanel" />
  180.           <vbox id="borderTabPanel" />
  181.           <vbox id="boxTabPanel" />
  182.           <vbox id="auralTabPanel" />
  183.         </tabpanels>
  184.       </tabbox>
  185.       <hbox align="center">
  186.         <spacer flex="1"/>
  187.         <button label="&closeButton.label;"
  188.                 oncommand="FlushChanges(); window.close();"/>
  189.       </hbox>
  190.     </vbox>
  191.   </hbox>
  192. </window>
  193.